<?php
/**
 * Not Zero Rule
 * Validates that the value is not zero
 * 
 * @package     Q-Validate
 * @subpackage  Rules
 * @author      Luke Visinoni <luke.visinoni@gmail.com>
 * @copyright   (c) 2010 Luke Visinoni <luke.visinoni@gmail.com>
 * @version     $Id: NotZero.php 37 2010-12-23 02:38:44Z luke.visinoni $
 * @todo        Unit tests
 */
class Q_Rule_NotZero extends Q_Rule_Abstract {

    public function isValid($value) {
    
        return ($value !== 0);
    
    }

}
